package com.cangsan.erhai.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName tab_carousel
 */
@TableName(value ="tab_carousel")
@Data
public class TabCarousel implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 轮播图
     */
    @TableField(value = "carousel_path")
    private String carouselPath;

    /**
     * 轮播主题
     */
    @TableField(value = "carousel_title")
    private String carouselTitle;

    /**
     * 轮播跳转
     */
    @TableField(value = "carousel_rule")
    private String carouselRule;

    @TableLogic // 标记为逻辑删除字段
    private Integer isDel;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
